package com.example.udpDemo.socket.design.singleton;

/**
 * 饿汉模式
 * @author wangdachuan
 * @version 1.0
 * @date 2023/4/6 00:14
 **/
public class Singleton01 {

    private static Singleton01 instance = new Singleton01();

    public Singleton01() {
    }

    public static Singleton01 getInstance() {
        return instance;
    }
}
